﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using GeneralDFS.DataEntity.IO;

namespace GeneralDFS.BusinessLogical.Network
{
    [Serializable]
    public class CustomTcpState
    {
        public Guid Guid;
        public Byte[] Buffer;
        public Byte[] PreBuffer;        //用来储存预读的数据
        public int BufferSize;
        public int PreBufferSize;       //预读的大小
        public long Position;
        public NetworkStream NetworkStream;
        public FileStream FileStream;
        public TcpClient TcpClient;
        public TcpListener TcpListener;
        public FileBlockMetaData FileBlockMetaData;
        public ManualResetEvent AllDone;
        public ManualResetEvent PreEvent;
        public String FilePath;
    }
}